package com.worldcup.dao;

import com.worldcup.model.TravelSearchLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author duwan.zq
 */
@Mapper
@Repository
public interface TravelSearchLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TravelSearchLog record);

    int insertSelective(TravelSearchLog record);

    TravelSearchLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelSearchLog record);

    int updateByPrimaryKey(TravelSearchLog record);

    /**
     * 统计非空列数量
     * @param columnName 列名
     * @return
     */
    Integer countNotNullColumn(@Param("columnName") String columnName);
}